#ifndef CCONSUMENUTRITION_H
#define CCONSUMENUTRITION_H

#include <QObject>
#include "cobject.h"

class CConsumeNutrition : public CObject
{
    Q_OBJECT
//    Q_PROPERTY(int id READ id) WRITE setId NOTIFY idChanged)
    Q_PROPERTY(int consumeId READ consumeId WRITE setConsumeId NOTIFY consumeIdChanged)
    Q_PROPERTY(int nutritionId READ nutritionId WRITE setNutritionId NOTIFY nutritionIdChanged)
    Q_PROPERTY(double quantity READ quantity WRITE setQuantity NOTIFY quantityChanged)
    Q_PROPERTY(int unitTypeId READ unitTypeId WRITE setUnitTypeId NOTIFY unitTypeIdChanged)
public:
    explicit CConsumeNutrition(QObject *parent = 0);

//    int id();
//    void setId(int id);

    int consumeId();
    void setConsumeId(int consumeId);

    int nutritionId();
    void setNutritionId(int nutritionId);

    double quantity();
    void setQuantity(double quantity);

    int unitTypeId();
    void setUnitTypeId(int unitTypeId);

signals:
//    void idChanged();
    void consumeIdChanged();
    void nutritionIdChanged();
    void quantityChanged();
    void unitTypeIdChanged();

public slots:

private:
//    int m_id;
    int m_consume_id;
    int m_nutrition_id;
    double m_quantity;
    int m_unit_type_id;
};

#endif // CCONSUMENUTRITION_H
